package com.pinkpig.excel.metadata;

import java.util.ArrayList;
import java.util.List;

/**
 * 主键元数据
 */
public class PrimaryKeyMetaData extends MetaData {

    private String pkName;

    private List<ColumnMetaData> pkColumns = new ArrayList<>();

    public void addPkColumn(ColumnMetaData columnMetaData){
        pkColumns.add(columnMetaData);
    }

    public String getPkName() {
        return pkName;
    }

    public void setPkName(String pkName) {
        this.pkName = pkName;
    }

    public List<ColumnMetaData> getPkColumns() {
        return pkColumns;
    }

    public void setPkColumns(List<ColumnMetaData> pkColumns) {
        this.pkColumns = pkColumns;
    }
}


